package com.prelearning.at_springboot.mapper;

import com.prelearning.at_springboot.entity.ChatInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.prelearning.at_springboot.entity.TestData;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author cgr
 * @since 2022-04-28
 */
public interface ChatInfoMapper extends BaseMapper<ChatInfo> {//

    //根据用户id获取所管理的群组信息
    @Select("SELECT * FROM chat_info WHERE owner_id= #{owner_id}")
    List<ChatInfo> getByOwnerId(@Param("owner_id") String owner_id);

}
